<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="/favicon.ico" >
<link rel="Shortcut Icon" href="/favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5shiv.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link href="/public/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
<link href="/public/static/h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
<link href="/public/static/h-ui.admin/css/style.css" rel="stylesheet" type="text/css" />
<link href="/public/static/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<script type="text/javascript" src="lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<title>后台登录</title>
<meta name="keywords" content="天虎物流,天虎,物流">
<meta name="description" content="天虎物流,天虎,物流">
</head>
<body>
<input type="hidden" id="TenantId" name="TenantId" value="" />
<!-- <div class="header"></div> -->
<div class="login_wraper">
  <div class="ciya">
    <div class="ciya_title_item">
      <div class="ciya_title"><h3>欢迎使用思洋互动管理后台</h3></div>
      <div class="ciya_item"><h6>网站建设&nbsp;&nbsp;小程序开发&nbsp;&nbsp;APP开发&nbsp;&nbsp;定制开发</h6></div>
    </div>
  </div>
  <div id="loginform" class="login_box">
    <div class="ciya_login_title">
      <div class="login_title"><h3>思洋互动</h3></div>
      <div class="login_f_title"><h6>管理登录</h6></div>
    </div>
    <form id="doLogin" class="form form-horizontal" action="{:url('doLogin')}" method="post">
      <div class="row_cl">
        <i class="Hui-iconfont">&#xe60d;</i>
        <input id="username" name="username" type="text" placeholder="帐号" class="input-text size-L">
      </div>
      <div class="row_cl">
        <i class="Hui-iconfont">&#xe60e;</i>
        <input id="password" name="password" type="password" placeholder="密码" class="input-text size-L">
      </div>
      <div class="row_cl_btn">
        <input name="" type="submit" class="ciya_login" value="登录">
      </div>
    </form>
    <div class="find_password">
      <span class="tmd_find_password">找回密码</span>
    </div>
    <div class="ciya_footer">
      <div class="ciya_ser">
        <div class="ciya_qq">
          <i class="Hui-iconfont">&#xe67b;</i>
          <span>在线客服:QQ1796270459</span>
        </div>
        <div class="ciya_tel">
          <i class="Hui-iconfont">&#xe6c7;</i>
          <span>服务电话:13808613787</span>
        </div>
      </div>
      <div class="ciya_copyright">Copyright  ©  2012~<?php echo date('Y',time()); ?> 项目开发组</div>
    </div>
  </div>
</div>
<script type="text/javascript" src="/public/static/lib/jquery/1.9.1/jquery.min.js"></script> 
<script type="text/javascript" src="/public/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="/public/static/js/layer.js"></script>
<script type="text/javascript" src="/public/static/js/lunhui.js"></script>
<script type="text/javascript">
$(function(){
  $('#doLogin').ajaxForm({
      beforeSubmit: checkForm, // 此方法主要是提交前执行的方法，根据需要设置
      success: complete, // 这是提交后的方法
      dataType: 'json'
  });
  
  function checkForm(){
      if( '' == $.trim($('#username').val())){           
          lunhui.error('请输入登录用户名');
          return false;
      }

      if( '' == $.trim($('#password').val())){
          lunhui.error('请输入登录密码');
          return false;
      }

      $("button").removeClass('btn-primary').addClass('btn-danger').text("登录中...");
  }


  function complete(data){
      if(data.code==501 || data.code==502 || data.code==503){
          lunhui.error(data.msg);
          $("button").removeClass('btn-danger').addClass('btn-primary').text("登　录");       
          return false;   
      }else{ 
          lunhui.success(data.msg,data.url);
      }

  }
 
});
$(".tmd_find_password").click(function() {
  $.ajax({
      type: 'POST',
      url: "{:url('findpwd/findpwd')}",
      data: {},
      success: function(resdata){
          if(resdata.code==200){
            layer.msg(resdata.msg,{icon:1,time:1000});
          }else{
            layer.msg(resdata.msg,{icon:2,time:3000});
          }
      },
      error: function(){
        layer.msg('失败',{icon:2,time:3000});
      }
  })
})
</script>
</body>
</html>